package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import retrofit2.Call;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.LoginBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.LoginIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.LoginListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.Server;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class LoginModel extends RetrofitBaseModel implements LoginIface<LoginBean> {
    private LoginService loginService;
    private Retrofit retrofit;
    public  LoginModel(){
        retrofit=getRetrofit();
        loginService=getLoginService();
    }
    @Override
    public void getLoginList(String user_phone, String user_password, LoginListener loginListener) {
        Call<LoginBean> call=loginService.getLoginBean(user_phone,user_password);
        callenqueue(call,loginListener);
    }
}
